using System;
using System.Web;
using Settings = eBenefits.Web.Helpers.SettingsHelper;

namespace eBenefits.Web.Helpers
{
	public class CookieHelper
	{
		private CookieHelper () {}
		
		public static void SetCookie (System.Web.HttpCookieCollection cookies, string cookieName, string cookieValue)
		{
			HttpCookie cookie = new HttpCookie (cookieName, cookieValue);
			cookie.Secure = Settings.UseSecureCookies;
			cookie.HttpOnly = Settings.UseHttpOnlyCookies;
			cookies.Set (cookie);
			
		}
	}
}

